package cn.cdeden.resource.unified.domain.enums;

import cn.cdeden.common.core.utils.MessageUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @ProjectName : KnowCore
 * @Package : cn.cdeden.resource.unified.domain.enums
 * @ClassName : PreviewTypeEnums
 * @Author : Yu.
 * @Description : // TODO
 * @Date : 2024/12/8 15:10
 * @Version : 1.0
 */

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum PreviewTypeEnums {

    kkFileView("kkFileView", "kkFileView"),

    write("write", "畅写地址"),

    onlyOffice("onlyOffice", "onlyOffice地址"),

    iceblue("iceblue", "冰蓝"),

    ;

    private String code;
    private String name;


    public static PreviewTypeEnums findCode(String code) {
        for (PreviewTypeEnums value : PreviewTypeEnums.values()) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }


}
